home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 019a / e530ud1.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1991-07-27  |  6KB  |  135 lines

  1. echo off
  2. cls
  3. if %1p1==p1 goto parmerror
  4. if %2p2==p2 goto parmerror
  5. echo ┌───────────────────────────────────────────────────────────────────────┐
  6. echo │                      E! INSTALLATION PROCEDURE                        │
  7. echo │                      *************************                        │
  8. echo │                                                                       │
  9. echo │ INSTALL will merely copy all E! files in a directory called \E! on    │
  10. echo │ the drive you indicated. Most of these files will be automatically    │
  11. echo │ dearchived from the two archive files provided on the diskette(s).    │
  12. echo │                                                                       │
  13. echo │ Then INSTALL will modify your AUTOEXEC.BAT file and add the direc-    │
  14. echo │ tory where E! has been installed to your PATH statement. It will      │
  15. echo │ also add the SET E!=x:\E! statement.                                  │
  16. echo │                                                                       │
  17. echo │ After reading the documentation, if you were to decide to change      │
  18. echo │ the directory where E! is installed or use a different directory      │
  19. echo │ to store your profiles and macros, you'll have to change AUTOEXEC     │
  20. echo │ accordingly.                                                          │
  21. echo │                                                                       │
  22. echo │ You can now stop the installation process by hitting Ctrl-C or        │
  23. echo │ hit any other key to continue.                                        │
  24. echo └───────────────────────────────────────────────────────────────────────┘
  25. pause
  26. cls
  27. echo ┌───────────────────────────────────────────────────────────────────────┐
  28. echo │                      REGISTERING YOUR COPY OF E!                      │
  29. echo │                      ***************************                      │
  30. echo │                                                                       │
  31. echo │ E! is not a copy protected software. However, we have decided to      │
  32. echo │ personalize each copy of E! to prevent software piracy.               │
  33. echo │                                                                       │
  34. echo │ This process is called "registering your copy of E!".                 │
  35. echo │ To do that you'll need two things:                                    │
  36. echo │                                                                       │
  37. echo │    - the E!PATCH program (installed in the E! directory)              │
  38. echo │    - a registration code (provided when purchasing E!)                │
  39. echo │                                                                       │
  40. echo │ After the installation process has succeeded, you'll have to switch   │
  41. echo │ to the E! directory and run E!PATCH. Follow the instructions and      │
  42. echo │ input your name and registration code. After that you'll never hear   │
  43. echo │ about copy protection again.                                          │
  44. echo │                                                                       │
  45. echo │ Many thanks for your help.                                            │
  46. echo └───────────────────────────────────────────────────────────────────────┘
  47. pause
  48. cls
  49. echo ┌────────────────────────────────────────────────────────────────────────┐
  50. echo │                   Starting E! installation                             │
  51. echo └────────────────────────────────────────────────────────────────────────┘
  52. echo                     The source drive is %1
  53. echo                     The target drive and directory are  %2\e!
  54. echo                     Hit Ctrl-C to stop
  55. pause
  56. echo Creating %2\e!...
  57. if not exist %2\e!\nul mkdir %2\e!
  58. echo Testing %2\e!...
  59. if not exist %2\e!\nul goto direrror
  60. %2
  61. chdir \e!
  62. if exist %1e!disk1.exe goto next1
  63. echo Please insert disk #1 in drive %1
  64. pause
  65. :next1
  66. cls
  67. echo Copying files from %1 to %2\e!...
  68. copy %1e!patch.exe
  69. copy %1e!patch.doc
  70. copy %1read.it
  71. copy %1register.txt
  72. cls
  73. echo Now dearchiving files...
  74. %1e!disk1
  75. if not exist %1e!disk2.exe goto nextdisk
  76. %1e!disk2
  77. goto ok
  78. :nextdisk
  79. echo Please insert disk #2 in drive %1
  80. pause
  81. if not exist %1e!disk2.exe goto diskerror
  82. %1e!disk2
  83. goto ok
  84. :parmerror
  85. echo INSTALL syntax : [x:]install x: y:
  86. echo where x: drive from where E! diskettes are read
  87. echo       y: drive where you want to install E!
  88. goto end
  89. :direrror
  90. echo Error while creating %2\e!
  91. goto end
  92. :diskerror
  93. echo Wrong diskette in drive %1
  94. goto end
  95. :ok
  96. set path=%path%;%2\e!;
  97. set e!=%2\e!
  98. %1setauto %2\e!
  99. if errorlevel 1 goto halt1
  100. if errorlevel 2 goto halt2
  101. if errorlevel 3 goto halt3
  102. cls
  103. echo E! has been installed in %2\e! and %2\e! has been added to your path
  104. echo The following statement has been added to AUTOEXEC.BAT: SET E!=%2\E!
  105. echo                 ****************
  106. echo Your old autoexec.bat has been saved in AUTOEXEC.OLD or in AUTOEXEC.E!O
  107. echo if AUTOEXEC.OLD was already present.
  108. echo                 ****************
  109. echo You don't need to reboot to begin to work with E!. These variables are
  110. echo already active.
  111. echo                 ****************
  112. echo Many thanks for using E!.
  113. goto end
  114. :halt1
  115. cls
  116. echo ERROR : autoexec.bat has not been found. You'll have to modify it
  117. echo yourself.
  118. echo Please add %2\e! to your path and
  119. echo        SET E!=%2\E!
  120. echo to your autoexec.bat
  121. echo E! files have been installed in %2\e!
  122. goto end
  123. :halt2
  124. cls
  125. echo ERROR : I/O error while modifying AUTOEXEC.BAT
  126. echo E! files have been installed in %2\e!
  127. goto end
  128. :halt3
  129. cls
  130. echo ERROR : AUTOEXEC.BAT could not be renamed
  131. echo E! files have been installed in %2\e!
  132. echo Please look at AUTOEXEC.E! in your boot directory and modify
  133. echo your AUTOEXEC.BAT accordingly.
  134. :end
  135.